package com.kg.module.jtnc.nhdagl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kg.core.base.model.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 农户档案管理表
 * </p>
 *
 * @author xxx
 * @since 2024-11-02
 */
@Getter
@Setter
@TableName("kr_nhdagl")
@ApiModel(value = "KrNhdagl对象", description = "农户档案管理表")
public class KrNhdagl implements BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "nh_id", type = IdType.ASSIGN_UUID)
    private String nhId;

    @ApiModelProperty("农户编号")
    @TableField("nhbh")
    private String nhbh;

    @ApiModelProperty("农户姓名")
    @TableField("nhxm")
    private String nhxm;

    @ApiModelProperty("农户性别")
    @TableField("nhxb")
    private String nhxb;

    @ApiModelProperty("农户年龄")
    @TableField("nhnl")
    private String nhnl;

    @ApiModelProperty("联系方式")
    @TableField("nhlxfs")
    private String nhlxfs;

    @ApiModelProperty("家庭住址")
    @TableField("nhjtzz")
    private String nhjtzz;

    @ApiModelProperty("紧急联系人")
    @TableField("jjlxr")
    private String jjlxr;

    @ApiModelProperty("紧急联系方式")
    @TableField("jjlxfs")
    private String jjlxfs;

    @ApiModelProperty("技术级别")
    @TableField("jsjb")
    private String jsjb;

    @ApiModelProperty("绑定微信状态（0：未绑定，1:已绑定）")
    @TableField("bind_wx_state")
    private String bindWxState;

    @ApiModelProperty("农户用户id")
    @TableField("nh_user_id")
    private String nhUserId;

    @ApiModelProperty("添加时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}
